package studio.raptor.dispatcher.server.entity;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Created by liuyong8 on 2017/6/29.
 */
public class BaseSubscriptionConfig {
    private Set<SubItem> itemSet = new HashSet<SubItem>();
    private String configId;
    //code-name
    private String codeName;
    /*
    0:送，1：不送
     */
    private Integer isSend;
    private String areaId;

    public Set<SubItem> getItemSet() {
        return itemSet;
    }

    public void addItemSet(SubItem subItem) {
        this.itemSet.add(subItem);
    }

    public void setItemSet(Set<SubItem> itemSet){
        this.itemSet = itemSet;
    }

    public String getConfigId() {
        return configId;
    }

    public void setConfigId(String configId) {
        this.configId = configId;
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public Integer getIsSend() {
        return isSend;
    }

    public void setIsSend(Integer isSend) {
        this.isSend = isSend;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    @Override
    public String toString() {
        return "BaseSubscriptionConfig{" +
                "itemSet=" + itemSet +
                ", configId='" + configId + '\'' +
                ", codeName='" + codeName + '\'' +
                ", isSend='" + isSend + '\'' +
                ", areaId='" + areaId + '\'' +
                '}';
    }
}
